package com.dmap.analysispoint.rpc;

import com.dmap.analysispoint.bo.CompanyInfoBo;
import com.dmap.analysispoint.rpc.fallback.RpcCompanyInfoServiceFallback;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

/**
 * \* User:zhouhao
 * \* Date:30/05/2018
 * \* Description:
 * \*
 */
@FeignClient(value = "pmpd-admin-server", fallback = RpcCompanyInfoServiceFallback.class)
public interface RpcCompanyInfoService {

    @RequestMapping(value = "/rpc/background/pmpd-admin-server/v2/companyInfo/select/selectByProjectId",method = RequestMethod.GET)
    CompanyInfoBo selectByProjectId(@RequestParam(value = "projectId") String projectId );

    @RequestMapping(value = "/rpc/background/pmpd-admin-server/v2/companyInfo/select/selectByCompanyId",method = RequestMethod.GET)
    List<String> selectByCompanyId(@RequestParam(value = "companyId") Long companyId );
}
